package ${package.ServiceImpl};

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Controller}.vo.request.${entity}PageRequest;
import ${package.Controller}.vo.response.view.${entity}Vo;
import ${package.Entity}.${entity};
import ${package.Mapper}.${entity}Mapper;
import ${package.Service}.${entity}Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
<#if table.name?contains("_n_") || table.name?contains("_m_")>
    import java.util.List;
</#if>
/**
* <p>
    * ${table.comment!} 服务实现类
    * </p>
*
* @author liangyiming
* @since ${date}
*/
@Service
public class ${entity}ServiceImpl extends ServiceImpl<${entity}Mapper, ${entity}> implements ${entity}Service {
@Autowired
private ${entity}Mapper mapper;
@Override
public Page<${entity}> queryPage(${entity}PageRequest pageRequest) {

    return mapper.queryPage(pageRequest);
    }
<#if table.name?contains("_n_") || table.name?contains("_m_")>
@Override
public List<${entity}> queryList(${entity} model) {
    return mapper.queryList(model);
    }
    </#if>
    }